﻿<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>导入</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <link rel="stylesheet" href="../Layui/css/layui.css" media="all">
</head>
<body>
  
    <form class="layui-form" action="">
        <div class="layui-row" style="margin-top:10px;">
            <div class="layui-col-md5">
                <div class="site-content">   <h1 class="layui-text">上传导入</h1></div>
            </div>
            <div class="layui-col-md5">
                <div class="site-content">   <h1 class="layui-text"> 导入预览</h1></div>
            </div>
        </div>

        <div class="layui-progress">
            <div class="layui-progress-bar" lay-percent="10%"></div>
        </div>
        <div class="site-content" style="margin-top:10px; margin-left:10px;">
            <ul class="layui-timeline">
                <li class="layui-timeline-item">
                    <i class="layui-icon layui-timeline-axis">&#xe63f;</i>
                    <div class="layui-timeline-content layui-text">
                        <h3 class="layui-timeline-title">下载模板,填入收集的学员信息</h3>
                        <p>
                            <a href="../upfile/名单导入模板.xls" class="layui-btn layui-btn-normal">　下载　</a>
                        </p>
                    </div>
                </li>
                <li class="layui-timeline-item">
                    <i class="layui-icon layui-timeline-axis">&#xe63f;</i>
                    <div class="layui-timeline-content layui-text">
                        <h3 class="layui-timeline-title">选择导入渠道</h3>

                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">渠道</label>
                        <div class="layui-input-inline">
                            <select name="CustFrom" lay-verify="required">
                                <option value=""></option>
                                <option value="0">地推</option>
                                <option value="1">电话</option>
                                <option value="2">广州</option>
                                <option value="3">深圳</option>
                                <option value="4">杭州</option>
                            </select>
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">来源备注</label>
                        <div class="layui-input-inline">
                            <input type="text" name="CusFromRemark" required lay-verify="required" placeholder="请输入来源备注" autocomplete="off" class="layui-input">
                        </div>

                    </div>
                </li>
                <li class="layui-timeline-item">
                    <i class="layui-icon layui-timeline-axis">&#xe63f;</i>
                    <div class="layui-timeline-content layui-text">
                        <h3 class="layui-timeline-title">选择文件上传</h3>
                        <div>
                            <div class="layui-card-header">拖拽上传</div>
                            <div class="layui-card-body">
                                <div class="layui-upload-drag" id="test-upload-drag">
                                    <i class="layui-icon"></i>
                                    <p>点击上传，或将文件拖拽到此处</p>
                                </div>
                            </div>

                        </div>
                    </div>
                </li>
                <li class="layui-timeline-item">
                    <i class="layui-icon layui-timeline-axis">&#xe63f;</i>
                    <div class="layui-timeline-content layui-text">
                        <div class="layui-timeline-title">导入预览</div>
                    </div>
                    <div>
                        <a href="import1.html" class="layui-btn layui-btn-normal">　下一步　</a>
                    </div>
                </li>
            </ul>
        </div>

    </form>
    <script src="../Layui/layui.js"></script>

    <script>
        layui.config({
            base: '../Layui/' //静态资源所在路径
        }).extend({
            index: 'lib/index' //主入口模块
        }).use('index');
    </script>
    <script>
        //Demo
        layui.use('form', function () {
            var form = layui.form;

            //监听提交
            form.on('submit(formDemo)', function (data) {
                layer.msg(JSON.stringify(data.field));
                return false;
            });
        });
    </script>
    <script>
        //注意进度条依赖 element 模块，否则无法进行正常渲染和功能性操作
        layui.use('element', function () {
            var element = layui.element;
        });
    </script>
    <script>
        layui.use('upload', function () {
            var upload = layui.upload;

            //执行实例
            var uploadInst = upload.render({
                elem: '#test-upload-drag' //绑定元素
                , url: '/upload/' //上传接口
                , done: function (res) {
                    //上传完毕回调
                }
                , error: function () {
                    //请求异常回调
                }
            });
        });
    </script>
</body>
</html>